var idCardA = {};
var idCardB = {};
var enterpriseImg = {};

$(function (){
	getAccountDetail();
});

function getAccountDetail(){
	var service = {};
	var fn="getAccountDetail";
	service = Commonjs.jsonToString(service);
	var params = Commonjs.getParams(fn,service);//获取参数
	Commonjs.ajaxTrue(weburl,params,getAccountDetailSuccess);
}

function getAccountDetailSuccess(data){
    if(data.data==null) {
        return false;
    }

    $('#apiAccessKey').html(data.data.apiAccessKey);

    if (data.data.isAgent=='Y') {
        $('#agentApiPass').html(data.data.agentApiPass);
        $('#seePass').on('click', function () {
            $('#agentApiPass').css('display', '');
            $('#seePass').css('display', 'none');
        });
    } else {
        $('#seePass').on('click', function () {
            $.tooltip('您还不是代理，未分配访问密钥', 2000, false);
        });
    }
}
